package subject_set.offer100;

/**
 * @author haomin
 * @date 2022/10/25 16:19
 **/
public class Offer58_Ⅱ {
    class Solution {
        public String reverseLeftWords(String s, int n) {
            StringBuffer res = new StringBuffer(s.substring(0, n)).reverse();
            res.append(new StringBuffer(s.substring(n)).reverse());
            return res.reverse().toString();
        }
    }
}